package cn.edu.wynu;

import org.springframework.stereotype.Component;

@Component
public class Calculator {

    public void add(int a, int b) {
        int sum = a + b;
        System.out.println("结果为：" + sum);
    }

    public void sub(int a, int b) {
        int sub = a - b;
        System.out.println("结果为：" + sub);
    }

    public void multiply(int a, int b) {
        int multiply = a * b;
        System.out.println("结果为：" + multiply);
    }
}
